package com.xmy.cultivate.mapper;

import com.xmy.cultivate.entity.Area;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 区域表 Mapper 接口
 * </p>
 *
 * @author hpiggy
 * @since 2025-02-09
 */
public interface AreaMapper extends BaseMapper<Area> {


    @Select("select t2.* from adms_allot_area_set as t1 INNER JOIN area as t2 on t1.area_id = t2.id GROUP BY t2.id")
    public List<Area> getAllotAreaList();
}
